package com.jo.mq;

import com.jo.config.RabbitConfig;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author Jo
 * @date 2017/12/7
 */
@Component
@RabbitListener(queues = RabbitConfig.QUEUE_NAME)
public class Consumer {

    @RabbitHandler
    public void processaaa( String msg){
        System.out.println("收到消息：" + msg);
    }
}
